<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'client.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="js/ext/resources/css/ext-all.css"/>
	<link rel="stylesheet" type="text/css" href="js/ext/resources/css/ext-patch.css"/>
	<script type="text/javascript" src="js/ext/adapter/ext/ext-base.js"></script>
	<script type="text/javascript" src="js/ext/ext-all.js"></script>
	<style type="text/css">
	#client_list{
	font-size:12;
	}
	</style>
<script type="text/javascript"><!-- 
Ext.onReady(function(){ 
var cm=new Ext.grid.ColumnModel([ 
{header:'客户代码',dataIndex:'id',width:60}, 
{header:'客户名称',dataIndex:'dtype',width:60}, 
{header:'所属行业',dataIndex:'name',width:60},
{header:'客户类型',dataIndex:'ctype',width:60},
{header:'信用评级',dataIndex:'update',width:60},
{header:'风险暴露分类',dataIndex:'editor',width:60},
{header:'经办人',dataIndex:'category',width:60},
{header:'经办机构',dataIndex:'date',width:100},
{header:'当前客户评级',dataIndex:'level',width:100},
{header:'所使用的评级模板',dataIndex:'model',width:100},
{header:'风险暴露分类',dataIndex:'rtype',width:100},
{header:'违约状态',dataIndex:'rtype',width:100},
]
); 
var data=[ 
['1'], 
['2'], 
['3'], 
['4'], 
['5'],
['6'] 
]; 
var ds=new Ext.data.Store({ 
proxy:new Ext.data.MemoryProxy(data), 
reader:new Ext.data.ArrayReader({},[ 
{name:'id'}, 
{name:'dtype'}, 
{name:'name'},
 {name:'ctype'},
 {name:'update'},
 {name:'editor'},
 {name:'category'},
 {name:'date'},
 {name:'level'},
 {name:'model'},
 {name:'rtype'}
]) 
}); 
ds.load(); 
var grid=new Ext.grid.GridPanel({ 
renderTo:"client_list", 
stripeRows:true,//斑马线效果 
store: ds, 
height:400, 
cm:cm 
}); 
}); 
// --></script> 
  </head>
  
  <body>
  <div id="position" align="left"><font size="2">当前位置： 
<a href="" style="text-decoration: none;">首页</a>&gt;&gt;客户管理&gt;&gt;企业法人</font></div>
<hr />
 <br/>   
    <div>
    <table width="200">
    <tr>
    <td><font size="2"><a href="view/customer/CheckCustomer_General.jsp">查看</a></font></td>
    <td><font size="2"><a href="customer/addCustomer.do">新增</a></font></td>
    <td><font size="2"><a href="">编辑</a></font></td>
    <td><font size="2"><a href="">删除</a></font></td>
    </tr>
    </table>
    </div>
    <br/>
    <div id="client_list"></div>
   </body>
</html>
